<div class="buildings view">
<h2><?php  __('Building');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['building_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['building_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Apt Business'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['apt_business']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regular Fund'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['regular_fund']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Special Fund'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['special_fund']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expense Liquidation Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['BuildingExpenseLiquidationType']['meaning']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Doorman'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($building['BuildingDoorman']['surname'], array('controller' => 'people', 'action' => 'view', $building['BuildingDoorman']['person_id'])); ?>
			&nbsp;
		</dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Customer'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($building['Customer']['customer_name'], array('controller' => 'customer', 'action' => 'view', $building['Customer']['customer_id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($building['Address']['address_id'], array('controller' => 'addresses', 'action' => 'view', $building['Address']['address_id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('End Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['end_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['created_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['updated_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $building['Building']['updated']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
            <?php if (!$building['Building']['end_date']) { ?>
		<li><?php echo $this->Html->link(__('Edit Building', true), array('action' => 'edit', $building['Building']['building_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Building', true), array('action' => 'delete', $building['Building']['building_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $building['Building']['building_id'])); ?> </li>
            <?php } ?>
		<li><?php echo $this->Html->link(__('List Buildings', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Building', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Addresses', true), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Payment Dues', true), array('controller' => 'payment_dues', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Refinancing Systems', true), array('controller' => 'refinancing_systems', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Expenditures', true), array('controller' => 'expenditures', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Periodic Expenditure Types', true), array('controller' => 'periodic_expenditure_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Properties', true), array('controller' => 'properties', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Property Types', true), array('controller' => 'property_types', 'action' => 'index')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php __('Related Payment Dues');?></h3>
	<?php if (!empty($building['PaymentDue'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Payment Due Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['payment_due_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['building_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Annual Rate');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['annual_rate'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('First Due Date');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['first_due_date'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Second Due Date');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['second_due_date'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['created_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['created'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['updated_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['PaymentDue']['updated'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Payment Due', true), array('controller' => 'payment_dues', 'action' => 'edit', $building['PaymentDue']['payment_due_id'])); ?></li>
			</ul>
		</div>
	</div>
		<div class="related">
		<h3><?php __('Related Refinancing Systems');?></h3>
	<?php if (!empty($building['RefinancingSystem'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Refinancing System Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['refinancing_system_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Building Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['building_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Amortization System');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['amortization_system'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Annual Rate');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['annual_rate'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['created_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['created'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['updated_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $building['RefinancingSystem']['updated'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Refinancing System', true), array('controller' => 'refinancing_systems', 'action' => 'edit', $building['RefinancingSystem']['refinancing_system_id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Expenditures');?></h3>
	<?php if (!empty($building['Expenditure'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Expenditure Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Expenditure Type Id'); ?></th>
		<th><?php __('Document Number'); ?></th>
		<th><?php __('Detail'); ?></th>
		<th><?php __('Amount'); ?></th>
		<th><?php __('Building Expenditure Type'); ?></th>
		<th><?php __('Party Name'); ?></th>
		<th><?php __('Payment Date'); ?></th>
		<th><?php __('Payment Method'); ?></th>
		<th><?php __('Invoice Number'); ?></th>
		<th><?php __('Forecast Year'); ?></th>
		<th><?php __('Forecast Month'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($building['Expenditure'] as $expenditure):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $expenditure['expenditure_id'];?></td>
			<td><?php echo $expenditure['building_id'];?></td>
			<td><?php echo $expenditure['expenditure_type_id'];?></td>
			<td><?php echo $expenditure['document_number'];?></td>
			<td><?php echo $expenditure['detail'];?></td>
			<td><?php echo $expenditure['amount'];?></td>
			<td><?php echo $expenditure['building_expenditure_type'];?></td>
			<td><?php echo $expenditure['party_name'];?></td>
			<td><?php echo $expenditure['payment_date'];?></td>
			<td><?php echo $expenditure['payment_method'];?></td>
			<td><?php echo $expenditure['invoice_number'];?></td>
			<td><?php echo $expenditure['forecast_year'];?></td>
			<td><?php echo $expenditure['forecast_month'];?></td>
			<td><?php echo $expenditure['created_by'];?></td>
			<td><?php echo $expenditure['created'];?></td>
			<td><?php echo $expenditure['updated_by'];?></td>
			<td><?php echo $expenditure['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'expenditures', 'action' => 'view', $expenditure['expenditure_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'expenditures', 'action' => 'edit', $expenditure['expenditure_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'expenditures', 'action' => 'delete', $expenditure['expenditure_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $expenditure['expenditure_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Expenditure', true), array('controller' => 'expenditures', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Periodic Expenditure Types');?></h3>
	<?php if (!empty($building['PeriodicExpenditureType'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Periodic Expenditure Type Id'); ?></th>
		<th><?php __('Expenditure Type Id'); ?></th>
		<th><?php __('Period Type'); ?></th>
		<th><?php __('Amount Type'); ?></th>
		<th><?php __('Due Date'); ?></th>
		<th><?php __('Amount'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($building['PeriodicExpenditureType'] as $periodicExpenditureType):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $periodicExpenditureType['periodic_expenditure_type_id'];?></td>
			<td><?php echo $periodicExpenditureType['expenditure_type_id'];?></td>
			<td><?php echo $periodicExpenditureType['period_type'];?></td>
			<td><?php echo $periodicExpenditureType['amount_type'];?></td>
			<td><?php echo $periodicExpenditureType['due_date'];?></td>
			<td><?php echo $periodicExpenditureType['amount'];?></td>
			<td><?php echo $periodicExpenditureType['building_id'];?></td>
			<td><?php echo $periodicExpenditureType['created_by'];?></td>
			<td><?php echo $periodicExpenditureType['created'];?></td>
			<td><?php echo $periodicExpenditureType['updated_by'];?></td>
			<td><?php echo $periodicExpenditureType['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'periodic_expenditure_types', 'action' => 'view', $periodicExpenditureType['periodic_expenditure_type_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'periodic_expenditure_types', 'action' => 'edit', $periodicExpenditureType['periodic_expenditure_type_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'periodic_expenditure_types', 'action' => 'delete', $periodicExpenditureType['periodic_expenditure_type_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $periodicExpenditureType['periodic_expenditure_type_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Periodic Expenditure Type', true), array('controller' => 'periodic_expenditure_types', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Properties');?></h3>
	<?php if (!empty($building['Property'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Floor'); ?></th>
		<th><?php __('Flat'); ?></th>
		<th><?php __('Dividend'); ?></th>
		<th><?php __('Owner Id'); ?></th>
		<th><?php __('Owner Representative Id'); ?></th>
		<th><?php __('Tenant Id'); ?></th>
		<th><?php __('Tenant Representative Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($building['Property'] as $property):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $property['property_id'];?></td>
			<td><?php echo $property['building_id'];?></td>
			<td><?php echo $property['property_type_id'];?></td>
			<td><?php echo $property['floor'];?></td>
			<td><?php echo $property['flat'];?></td>
			<td><?php echo $property['dividend'];?></td>
			<td><?php echo $property['owner_id'];?></td>
			<td><?php echo $property['owner_representative_id'];?></td>
			<td><?php echo $property['tenant_id'];?></td>
			<td><?php echo $property['tenant_representative_id'];?></td>
			<td><?php echo $property['end_date'];?></td>
			<td><?php echo $property['created_by'];?></td>
			<td><?php echo $property['created'];?></td>
			<td><?php echo $property['updated_by'];?></td>
			<td><?php echo $property['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'properties', 'action' => 'view', $property['property_id'])); ?>
                            <?php if (!$property['end_date']) { ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'properties', 'action' => 'edit', $property['property_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'properties', 'action' => 'delete', $property['property_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $property['property_id'])); ?>
                            <?php } ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property', true), array('controller' => 'properties', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Property Types');?></h3>
	<?php if (!empty($building['PropertyType'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Order'); ?></th>
		<th><?php __('Property Type Name'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Expense Amount'); ?></th>
		<th><?php __('Coefficient'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($building['PropertyType'] as $propertyType):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $propertyType['property_type_id'];?></td>
			<td><?php echo $propertyType['building_id'];?></td>
			<td><?php echo $propertyType['property_type_order'];?></td>
			<td><?php echo $propertyType['property_type_name'];?></td>
			<td><?php echo $propertyType['description'];?></td>
			<td><?php echo $propertyType['expense_amount'];?></td>
			<td><?php echo $propertyType['coefficient'];?></td>
			<td><?php echo $propertyType['end_date'];?></td>
			<td><?php echo $propertyType['created_by'];?></td>
			<td><?php echo $propertyType['created'];?></td>
			<td><?php echo $propertyType['updated_by'];?></td>
			<td><?php echo $propertyType['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'property_types', 'action' => 'view', $propertyType['property_type_id'])); ?>
                            <?php if (!$propertyType['end_date']) { ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'property_types', 'action' => 'edit', $propertyType['property_type_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'property_types', 'action' => 'delete', $propertyType['property_type_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $propertyType['property_type_id'])); ?>
                            <?php } ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property Type', true), array('controller' => 'property_types', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Council Members');?></h3>
	<?php if (!empty($building['CouncilMember'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Council Member Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Person Id'); ?></th>
		<th><?php __('President Flag'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($building['CouncilMember'] as $councilMember):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $councilMember['council_member_id'];?></td>
			<td><?php echo $councilMember['building_id'];?></td>
			<td><?php echo $councilMember['person_id'];?></td>
			<td><?php echo $councilMember['president_flag'];?></td>
			<td><?php echo $councilMember['end_date'];?></td>
			<td><?php echo $councilMember['created_by'];?></td>
			<td><?php echo $councilMember['created'];?></td>
			<td><?php echo $councilMember['updated_by'];?></td>
			<td><?php echo $councilMember['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'council_members', 'action' => 'view', $councilMember['council_member_id'])); ?>
                            <?php if (!$councilMember['end_date']) { ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'council_members', 'action' => 'edit', $councilMember['council_member_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'council_members', 'action' => 'delete', $councilMember['council_member_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $councilMember['council_member_id'])); ?>
                            <?php } ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Council Member', true), array('controller' => 'council_members', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
